import Vue from 'vue'
import {
  Button,
  Form,
  FormItem,
  Input,
  Container,
  Header,
  Aside,
  Main,
  Menu,
  Submenu,
  MenuItem,
  Breadcrumb,
  BreadcrumbItem,
  Card,
  Row,Col,
  Table,TableColumn,
  Switch,Tooltip,Pagination,Dialog,MessageBox,
  Alert,TabPane,Tabs,Tree,Tag,Select,Option,Cascader
} from 'element-ui'
//import { DatePicker,tree} from 'element-ui'
//import {tree} from 'element-ui'

//导入弹框提示组件
import { Message } from 'element-ui'

// Vue.use(DatePicker)
// Vue.use(tree)
Vue.use(Alert)
Vue.use(Tabs)
Vue.use(TabPane)
Vue.use(Tree)
Vue.use(Tag)
Vue.use(Select)
Vue.use(Option)
Vue.use(Cascader)

Vue.use(Button)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Input)
Vue.use(Container)
Vue.use(Header)
Vue.use(Aside)
Vue.use(Main)
Vue.use(Menu)
Vue.use(Submenu)
Vue.use(MenuItem)
Vue.use(Breadcrumb)
Vue.use(BreadcrumbItem)
Vue.use(Card)
Vue.use(Col)
Vue.use(Row)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(Switch)
Vue.use(Tooltip)
Vue.use(Pagination)
Vue.use(Dialog)
//全局挂载---$message自定义
//每个组件都可以通过this访问$message，进行弹框提示
Vue.prototype.$message = Message   
Vue.prototype.$confirm = MessageBox.confirm  
